//
//  KuaiSanDetailCell.m
//  K8彩票
//
//  Created by zyn on 2017/6/7.
//  Copyright © 2017年 zhoubo. All rights reserved.
//

#import "KuaiSanDetailCell.h"

@implementation KuaiSanDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setContentJiangSuKuai3:(CaipiaoHistoryModel *)model{
    _labelQiHao.text = model.issueno;
    NSArray *arrs = [model.number componentsSeparatedByString:@" "];
    [_image1 setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@",arrs[0]]]];
    [_image2 setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@",arrs[1]]]];
    [_image3 setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@",arrs[2]]]];
    int total = [arrs[0] intValue] + [arrs[1] intValue] + [arrs[2] intValue];
    _labelTotal.text =  [NSString stringWithFormat:@"%d",total];
    if(total < 10)
        _labelType1.text = @"小";
    else
        _labelType1.text = @"大";
    
    if (total % 2 == 0)
        _labelType2.text = @"双";
    else
        _labelType2.text = @"单";
}


@end
